<div class="form">
<?php
Yii::app()->clientScript->registerScript('RUN2', "
$('#Familiar_1_run').Rut({
   on_error: function(){ $('#Familiar_1_run').val(''); alert('El rut ingresado es incorrecto'); }
})
");?>
	<p class="note">
		Los campos con <span class="required">*</span> son obligatorios.
	</p>
	
	

    <?php echo $form->errorSummary($familiar); ?>
	
    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]nombres'); ?>
        <?php echo $form->TextField($familiar,'[1]nombres'); ?>
        <?php echo $form->error($familiar,'[1]nombres'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]apellido_paterno'); ?>
        <?php echo $form->TextField($familiar,'[1]apellido_paterno'); ?>
        <?php echo $form->error($familiar,'[1]apellido_paterno'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]apellido_materno'); ?>
        <?php echo $form->TextField($familiar,'[1]apellido_materno'); ?>
        <?php echo $form->error($familiar,'[1]apellido_materno'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]direccion'); ?>
        <?php echo $form->TextField($familiar,'[1]direccion'); ?>
        <?php echo $form->error($familiar,'[1]direccion'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]telefono'); ?>
        <?php echo $form->TextField($familiar,'[1]telefono'); ?>
        <?php echo $form->error($familiar,'[1]telefono'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]run'); ?>
       	<?php echo $form->textField($familiar,'[1]run',array('maxlength'=>12));?>
        <?php echo $form->error($familiar,'[1]run'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]nivel_estudios'); ?>
        <?php echo $form->TextField($familiar,'[1]nivel_estudios'); ?>
        <?php echo $form->error($familiar,'[1]nivel_estudios'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]actividad'); ?>
        <?php echo $form->TextField($familiar,'[1]actividad'); ?>
        <?php echo $form->error($familiar,'[1]actividad'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]parentesco'); ?>
        <?php echo $form->TextField($familiar,'[1]parentezco',array('value'=>'Madre')); ?>
        <?php echo $form->error($familiar,'[1]parentezco'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]email'); ?>
        <?php echo $form->TextField($familiar,'[1]email'); ?>
        <?php echo $form->error($familiar,'[1]email'); ?>
    </div>
    
     <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]sexo'); ?>
        <?php echo CHtml::textField('sexo','Femenino',array('disabled'=>true)); ?>
        <?php echo $form->hiddenField($familiar,'[1]sexo',array('value'=>'F')); ?>
        <?php echo $form->error($familiar,'[1]sexo'); ?>
    </div>

    <div class="row">
        <?php echo $form->LabelEx($familiar,'[1]apoderado'); ?>
      	<?php echo $form->DropDownList($familiar,'[1]apoderado',array(1=>"Si",0=>"No")); ?>
        <?php echo $form->error($familiar,'[1]apoderado'); ?>
    </div>

</div>
<!-- form -->
